<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html> 
<head>
<%@ include file="../../include/easyui.jsp" %>
<%@ include file="../../include/pForm.jsp" %>
<title>表单编辑页面</title>
<script>
	$(function(){
		fn.resetForm();
	});
	
	function loadFilter(data){
		return data.rows || [];
	}
	
	function formatter(row){
		return row.name + ' ' +  (row.description || '');
	}
</script>
</head>
<body>
	<div class="easyui-panel" data-options="fit:true,border:false" style="padding:10px;">
		<!-- 替换自动form表单 -->
		<form id="easyuiForm" method="post" action="/console/com.fs.flow.pojo.JForm/modify"   >
		 	<input type="hidden" name="className" value="com.fs.flow.pojo.JForm" />
		 	<input type="hidden" name="createrId" value="" />
		 	<input type="hidden" name="fStatus" value="" />
		 	<input type="hidden" name="id" value="" />
		  	<div style="margin-bottom:20px">
			  	<input class="easyui-textbox easyui-validatebox" name="fName" style="width:300px;" data-options="labelWidth:80,label:'表单名称:',required:true,validType:['length[1,15]','remote[\'/console/role/remote\',\'roleName\']']" />
			 </div>
			
			 <div style="margin-bottom:20px">
			  	<input class="easyui-textbox easyui-validatebox" name="fTableName" style="width:300px;" data-options="labelWidth:80,label:'数据库表:',required:true,validType:['length[1,15]']" readonly="readonly" />
			 </div>
			 
			 <div style="margin-bottom:20px">
			 	<select class="easyui-combobox"   readonly="readonly"  name="fSqlTemplate" style="width:300px;" data-options="label:'建表模板:',required:true">   
				     <option value="t1">简单表15个字段</option> 
			    	<option value="t2">普通表单20个字段</option>   
			    	<option value="t3">普通表单30个字段</option>
				</select> 
			 </div>
			 
			<div style="margin-bottom:20px">
			  	 <select class="easyui-combobox" name="fType"  style="width:300px;" data-options="labelWidth:80,label:'表单类型:',valueField:'text',panelHeight:140" 
					url="/console/dictionary/combotree?valueField=dicName&textField=dicName&modleName=dictionary&pCode=C7&pCode_searchType=eq" >
			 	</select>
			 </div>
			 
			 <div style="margin-bottom:20px">
			  	 <select class="easyui-combobox" name="processKey"  style="width:300px;" data-options="labelWidth:80,label:'绑定流程:',valueField:'key',textField:'name',panelHeight:140,loadFilter:loadFilter,formatter:formatter" 
					url="/console/activiti/deploy/definitionList">
			 	</select>
			 </div>
			
			 <div style="margin-bottom:20px">
			  	<input class="easyui-textbox" name="fDesc" multiline="true" style="width:300px;height:80px;"  data-options="labelWidth:80,label:'表单描述:',required:false,validType:'length[0,500]'"  />
			 </div>
		</form>
	</div>
</body>
</html>